package com.onlygx.dva.web.ui.service;

import com.onlygx.dva.web.ui.entity.BaseRolePerm;
import com.onlygx.dva.web.ui.entity.dto.BaseRolePermSearchDTO;
import com.onlygx.dva.web.ui.entity.vo.BaseRolePermShowVO;
import com.onlygx.dva.web.ui.mapper.BaseRolePermMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 角色-权限 关联表 服务实现类
 * </p>
 *
 * @author GaoXiang
 * @since 2023-08-04
 * @version V1.0
 */
@Service
@RequiredArgsConstructor
public class BaseRolePermService extends ServiceImpl<BaseRolePermMapper, BaseRolePerm> implements IService<BaseRolePerm>{

    final BaseRolePermMapper baseRolePermMapper;


    public Page<BaseRolePermShowVO> pageByParam(Page<BaseRolePermSearchDTO> page, BaseRolePermSearchDTO param) {

        return baseRolePermMapper.pageByParam(page,param);
    }
}
